package net.guttershark.preloading.events 
{
	
	import flash.events.Event;
	
	/**
	 * The PreloadProgressEvent dispatches to notify listeners the overall
	 * progress of a PreloadController.
	 * 
	 * @see net.guttershark.preloading.PreloadController PreloadController class
	 */
	public class PreloadProgressEvent extends Event
	{
		
		/**
		 * Defines the value of the type property of the preloadProgress event type.
		 */
		public static const PROGRESS:String = "preloadProgress";
		
		/**
		 * The amount of pixels that should be full based off of the overall download progress.
		 */
		public var pixels:int;
		
		/**
		 * The percent complete of the overall assets to download.
		 */
		public var percent:Number;
		
		/**
		 * Constructor for PreloadProgressEvent instances.
		 * 
		 * @param	type	The event type.
		 * @param	pixels	The amount of pixels.
		 * @param	percent	The percent complete.
		 */
		public function PreloadProgressEvent(type:String, pixels:int, percent:Number):void
		{
			super(type,false,false);
			this.pixels = pixels;
			this.percent = percent;	
		}
	}
}
